<template>
  <div class="home">
      <el-button type="primary" @click="logOut">退出</el-button>
  </div>
</template>
<script>
export default {
    name:'Home',
    methods: {
        logOut(){
            this.$router.push({path:'/login'})
            sessionStorage.clear()
        }
    },
}
</script>
<style lang="less" scoped>

</style>